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PydLYhTEcCst1wIDAQAB"
# a = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC6lccAL2B21+uU0ZaaboKOWDGBhMyp+DaKhihl4sMrruzFewLFyFlGhjBqDxcvMFXd6mHZkBXSD7I7ShgAhchMZAUfnhVyX5Xx5otjNUr3UH2WSfsvlwVldR+rIWP0PajW2/xIEx1ec6cA+vyZcnAuk/YJhKLGNZGv1x6UPJFg8QIDAQAB"
b = len(a) / 65.0
c = math.ceil(b)
s = ""
for i in range(c):
    start_num = i * 64
    end_num = (i + 1) * 64
    s += a[start_num:end_num] + "\n"
s = "-----BEGIN PUBLIC KEY----- \n" + s + "-----END PUBLIC KEY-----"
# s = "-----BEGIN PRIVATE KEY----- \n" + s + "-----END PRIVATE KEY-----"
print(s)